<?php
return array(
	//'配置项'=>'配置值'
	 //数据库配置信息
	'DB_TYPE'   => 'mysql', // 数据库类型
	'DB_HOST'   => 'localhost', // 服务器地址
	'DB_NAME'   => 'jiaphpcms', // 数据库名
	'DB_USER'   => 'phpcmsdushijia', // 用户名
	'DB_PWD'    => 'whx!VpU$DOSpl01', // 密码
	'DB_PORT'   => 3306, // 端口
	'DB_PREFIX' => 'v9_', // 数据库表前缀 

	'DEFAULT_MODULE'     => 'Index', //默认模块
    'URL_MODEL'          => '2', //URL模式
	'URL_CASE_INSENSITIVE' =>true,
	'URL_HTML_SUFFIX'=>'.shtml',
	'LAYOUT_ON'=>true,
	//'URL_PATHINFO_DEPR'=>'_',
	'URL_ROUTER_ON'   => true, //开启路由
	'URL_ROUTE_RULES' => array( //定义路由规则
		'/^([a-z]+)$/'        => 'News/lists?c=:1',
		'/^([a-z]+)\/(\d+)$/'        => 'News/lists?c=:1&p=:2',
		'/^([a-z]+)\/(\d+)\/(\d+)\/(\d+)$/'  => 'News/show?cateid=:1&year=:2&month=:3&id=:4',

	),
	'HTML_CACHE_ON'=>true,
	'HTML_CACHE_RULES'=> array(
		'news:lists'=>array('{:module}/{:action}/{c}/{$_SERVER.REQUEST_URI|md5}',7200),
		'news:show'=>array('{:module}/{:action}/{cateid}/{year}/{month}/{id}/{id}',0),
		'index:index'=>array('{:module}/{:action}/{id}/{$_SERVER.REQUEST_URI|md5}',5400),
		//…更多操作的静态规则
	)




);
?>